/*
 Theme Name:   Mediax Child  
 Theme URI:    https://wordpress.themeholy.com/mediax
 Description:  This is a child theme for Mediax - WordPress Theme
 Author:       Themeholy
 Author URI:   https://themeforest.net/user/themeholy 
 Template:     mediax
 Version:      1.0
 Tags:         two-columns, three-columns, left-sidebar, right-sidebar, flexible-header, custom-background, custom-colors, custom-header, custom-menu, theme-options, editor-style, featured-images, microformats, post-formats,  sticky-post, threaded-comments, translation-ready
 Text Domain:  mediax-child
*/

/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */    

/* ----- Custom ----- */
/* banner - home */
.hero-2 .hero-shape1 {
    top: 5%;
    right: 42%;
}
.header-button .icon-btn {
    width: 48px;
    height: 48px;
    line-height: 48px;
}

/* header */
header.th-header .sticky-wrapper {
    position: unset;
}

/* footer */
.mona-footer-media img {
    height: 15px !important; 
    margin-bottom: 4px; 
    padding-left: 5px;
}
.mona-sec-footer .elementor-shape-circle .elementor-icon.elementor-social-icon {
    display: flex;
}

/* button */
.th-btn {
    background: linear-gradient(180deg, var(--theme-color) 37.5%, var(--theme-color) 100%) !important;
}
.th-btn:after {
    content: "";
    position: absolute;
    height: 56%;
    bottom: 1px;
    left: 10px;
    width: calc(100% - 20px);
    background: -webkit-gradient(linear, left top, left bottom, from(var(--color3)), color-stop(78.65%, var(--color4)));
    background: linear-gradient(180deg, var(--color3) 0%, var(--color4) 78.65%);
    -webkit-filter: blur(2px);
    filter: blur(2px);
    z-index: -1;
    -webkit-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
    border-radius: inherit;
    transform: rotate(180deg);
}

/* form đặt lịch */
.mona-sec-dat-lich .wpcf7-not-valid-tip {
    position: absolute;
    bottom: 0;
    right: 24px;
    font-size: 12px;
    line-height: 20px;
}
.mona-sec-dat-lich .wpcf7-response-output {
    margin-left: 0;
    margin-right: 0;
}
.mona-sec-dat-lich.appointment-row .img-box4 {
    justify-content: center;
}

/* background color - white */
.bg-white .testi-card {
    background:#fff !important;
}

/* button add to wishlist */
.tinvwl_add_to_wishlist_button {
    transition: all 0.3s;
    display: flex !important;
    justify-content: center;
    align-items: center;
}
.tinv-wishlist button.button {
    height: 40px;
}

/* blog */
.mona-sec-blog .blog-content {
    padding: 24px;
}
.mona-sec-blog .blog-content .box-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
}

/* form */
.mona-sec-appointment .th-btn.btn-fw,
.mona-sec-question .th-btn.btn-fw,
.mona-sec-contact-form .th-btn.btn-fw{
    width: auto;
}
.mona-sec-appointment .col-button-appoitment,
.mona-sec-question .col-button-question,
.mona-sec-contact-form .col-button-contact{
    display: flex;
    justify-content: center;
}
.mona-sec-appointment .wpcf7-form.submitting .loading:before,
.mona-sec-question .wpcf7-form.submitting .loading:before,
.mona-sec-contact-form .wpcf7-form.submitting .loading:before{
    opacity: 1;
    z-index: 9999;
}
.wpcf7-form.submitting .th-btn.btn-fw {
    pointer-events: none;
    opacity: 0.7;
}
.mona-sec-appointment .wpcf7-not-valid-tip,
.mona-sec-question .wpcf7-not-valid-tip,
.mona-sec-contact-form .wpcf7-not-valid-tip{
    position: absolute;
    right: 20px;
    bottom: 0;
    font-size: 12px;
    line-height: 20px;
}
.mona-sec-appointment .wpcf7-response-output,
.mona-sec-question .wpcf7-response-output,
.mona-sec-contact-form .wpcf7-response-output{
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.mona-sec-appointment .appointment-form2,
.mona-sec-question .faq-form,
.mona-sec-question .contact-form{
    padding: 32px;
}

/* contact */
.contact-feature .box-schedule {
    color: var(--error-color);
}

/* single product */
.product-tab-style1 .th-btn.active {
    background: linear-gradient(180deg, var(--theme-color2) 37.5%, var(--theme-color2) 100%) !important;
    -webkit-box-shadow: 0px 3px 15px #B0BAD3 !important;
}
.product-tab-style1 .th-btn.active:after {
    background: linear-gradient(180deg, #A3BDFF 0%, rgba(155, 184, 255, 0) 78.65%);
    transform: rotate(180deg);
}

/* price box */
.mona-sec-price-box .price-card .box-price {
    line-height: 1.333;
}

/* blog */
/*body.blog .th-blog-wrapper .sidebar-area {*/
/*    position: sticky;*/
/*    top: 8px;*/
/*    margin: 0;*/
/*}*/
body.blog .th-blog-wrapper .sidebar-area .widget {
    margin-bottom: 24px;
}

body.blog .th-blog-wrapper .col-lg-12:last-child .blog-single {
    margin-bottom: 0;
}

/* loadding */
.loading,
.th-product .actions .cart-button{
    position: relative;
}
.th-product .actions .cart-button.loading:before {
    opacity: 1 !important;
    bottom: 5px !important;
    left: 5px !important;
}
.loading:before,
.th-product .actions .cart-button.loading:before{
    content: '';
    position: absolute;
    background-image: url(../mediax/assets/img/loading.png);
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    bottom: 14px;
    left: calc(50% - 12px);
    object-fit: cover;
    background-size: cover;
    animation: spin 1s infinite linear;
    opacity: 0;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* footer */
.mona-sec-footer .footer-widget {
    margin-bottom: 24px;
}
.mona-sec-footer .th-widget-location {
    margin-top: -12px;
}

/* mobile */
@media (max-width: 767px) {
    /* banner - home */
    .hero-2 .hero-shape1 {
        top: 2%;
        right: 6%;
    }

    
    /* header */
    .th-header .header-logo {
        display: flex;
        align-items: center;
    }
    .header-logo .logo img.img-fluid {
        height: auto;
    }
    .th-header .th-menu-wrapper .logo img {
        max-width: 80%;
    }
    
    /* footer */
    .mona-footer-media {
        font-size: 13px;
    }
    .mona-footer-media img {
        height: 13px !important;
    }
    .mona-sec-footer .th-widget-location {
        margin-top: 0;
        max-width: unset;
    }
    
    /* about */
    .mona-sec-about .checklist.list-two-column ul {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* width - 50% */
    .mona-sec-services .elementor-widget-mediaxservice .elementor-widget-container>.row>*,
    body.post-type-archive .shop-grid-area .row .col-lg-4,
    .mona-sec-team .elementor-widget-mediaxteam .row .col-xl-3{
        width: 50%;
    }
    
    /* form */
    .mona-sec-appointment .appointment-form2,
    .mona-sec-question .faq-form,
    .mona-sec-question .contact-form{
        padding: 24px;
    }
    
    /* product page */
    body.post-type-archive .shop-grid-area .row .col-lg-4 .th-product .product-title {
        line-height: 24px;
    }
    body.single-product .product-about .quantity .qty-input {
        width: 100px;
    }
    body.single-product form.cart .actions .th-btn {
        padding: 12px 24px;
    }
    
    /* cart */
    .sidemenu-content .woocommerce-mini-cart__buttons {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }
}
/* ----- End custom ----- */


/* scrollbar */
body::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}

body::-webkit-scrollbar
{
	width: 6px;
	background-color: #F5F5F5;
}

body::-webkit-scrollbar-thumb
{
    border-radius: 10px;
	background-color: var(--theme-color);
}